from role_config import queen_identifier


# kafka
queen_broker = '192.168.31.117:9092'
queen_producer_config = {'bootstrap.servers': '192.168.31.117:9092'}
queen_consumer_config = {
    'bootstrap.servers': '192.168.31.117:9092',
    'group_id': 'test-consumer-group',
    'auto.offset.reset': 'earlist',
    'enable.auto.commit': 'True',
    'auto.commit.interval.ms': 5000,
}
queen_to_slave_topic = 'queen-to-slave'
queen_to_test_topic = 'queen-to-test'
queen_to_svip_topic = 'queen-to-svip'
queen_to_web_topic = 'queen-to-web'
slave_to_queen_topic = 'slave-to-queen'
slave_main_group = 'main-consumer-group'
slave_test_group = 'test-consumer-group'
slave_web_group = 'web-consumer-group'

# redis
redis_host = '192.168.31.117'
redis_port = 6379
redis_password = 'qweqwe'
db = 0
decode_responses = True
queen_expire_time = 1200

# zookeeper
zookeeper_host = '192.168.31.117:2181'
queen_election_path = '/queen_test/leader'
zookeeper_session_timeout = 10  # s
queen_identifier = queen_identifier

# Oracle
DATABASE_URI = 'oracle://B2CIM:B2CIM1234@10.236.12.152:1521/B2MFGDB'

# server
heartbeat_host = 4018
